import GUI from 'lil-gui'

let gui: GUI

function createGUI (dom: HTMLElement) {
  if (gui) gui.destroy()
  gui = new GUI({
    container: dom
  })
}
export {
  gui
}
export default createGUI
